<ion-view view-title="登录">
  <ion-nav-buttons side="left">
    <button style="color: #fff;" class="button button-positive button-clear ion-android-arrow-back"
            ng-click="goHome()">
    </button>
  </ion-nav-buttons>
  <ion-content>
    <div class="list">
      <label class="item item-input item-floating-label">
        <span class="input-label">用户名</span>
        <input type="text" placeholder="邮箱" ng-model="user.name">
      </label>
      <label class="item item-input item-floating-label">
        <span class="input-label">密码</span>
        <input type="password" placeholder="密码" ng-model="user.pwd">
      </label>

    </div>
    <div class="padding">
      <button class="button button-full " style="background-color: #1E3DA1; color: white;"  ng-click="login()" ng-disabled="!user.name || !user.pwd">
      登录
    </button>
    </div>
    <div class="row" style="text-align: center">
      <div class="col"><!--<ion-item href="#/register"> -->
        <button class="button button-clear " style="color: #1E3DA1; " ng-click="register()">
          注册
        </button>
        <!--</ion-item> -->

      </div>
      <div class="col">
        <button class="button button-clear " style="color: #646464;" ng-click="fgtpw()">
          忘记密码
        </button>
      </div>
    </div>
    <div class="list list-inset" style="border-color: white">
    <div class="padding item" style="text-align: center;color: #646464 ;border-color: white">
      其他登录方式
      <button class="button button-clear button-full" style="background-image: url('img/wechattxt.png'); background-repeat: no-repeat ;background-position: center;"
              ng-click="wechat_login()"></button>
    <!--<button class="button button-clear "  ng-click="wechat_login()">-->
      <!--微信登录</button>-->
    </div>
    </div>
  </ion-content>
</ion-view>
